extends INodeFactory


class_name PackedSceneFactory
"""
负责从指定的Scene资源生成节点对象
"""


## 引用的Scene资源
@export var resource_scene: PackedScene = null


func __check_exports() -> Dictionary:
    return IComponent.merge({
        "resource_scene": func(): return resource_scene != null,
    }, super.__check_exports())

# 生成一个对象
func __make_one() -> Node:
    return resource_scene.instantiate()
